package com.xqboss.apps.domain.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xqboss.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 标签表
 * </p>
 *
 * @author lang.liu
 * @since 2021-11-18
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "SysTag对象", description = "标签表")
public class SysTag {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标签ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标签名称")
    private String name;

    @ApiModelProperty(value = "标签描述")
    private String remark;

    @ApiModelProperty(value = "是否支持自动打标签,false不支持,true支持")
    private Boolean autoBrand;

    @ApiModelProperty(value = "权重值")
    private Integer weight;

    @ApiModelProperty(value = "层级,0表示顶级,1表示二级,以此类推")
    private Integer hierarchy;

    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;

    @JsonIgnore
    @TableLogic(value = "null",delval = "now()")
    protected Date deleteTime;

    @ApiModelProperty("标签父")
    private String tagParent;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
